<?php

namespace Instance;

class Instance
{

    public static $instance;

    public static function getInstance()
    {
        if(self::$instance == null){
            self::$instance = new static();
        }
        return self::$instance;
    }

    private function __construct()
    {
        
    }
    
    public function __call($name,$args)
    {
        echo 'call';
    }
    
    private function __clone()
    {

    }

    public function test()
    {
        dd('instance');
    }

}